#ifndef __LC_SWITCH_H__
#define __LC_SWTICH_H__

typedef unsigned short lc_t;

#define LC_INIT(s) s = 0;

#define LC_RESUME(s) switch(s) { case 0:

#define LC_SET(s) case __LINE__: s = __LINE__

#define LC_END(s) }

#endif /* __LC_SWITCH_H__ */

